
class Person:
    def __init__(self, name:str, money:int):
        self.m_name = name
        self.m_money = money

    def __add__(self, other):
        return Person(self.m_name +"____"+ other.m_name,self.m_money + other.m_money)

    def intro(self):
        print(f"我的名字是：{self.m_name} , 我的财产是{self.m_money}")


zhangsan = Person("zhangsan",10)
zhangsan.intro()
wangwu = Person("wangwu",30)
wangwu.intro()


# zhangsan=per
# add_person = zhangsan + wangwu
# add_person.intro()

add_person=zhangsan+wangwu
add_person.intro()

